public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList  = new MySingleList();
        mySingleList.addLast(1);
        mySingleList.addLast(2);
        mySingleList.addLast(3);
        mySingleList.addLast(4);
        mySingleList.addLast(5);
        mySingleList.display();
        System.out.println();
        System.out.println("反转结果: ");
        mySingleList.reverseList();
        mySingleList.display();
    }
    public static void main1(String[] args) {
        MySingleList mySingleList = new MySingleList();
        //mySingleList.createList();
//        mySingleList.addFirst(12);
//        mySingleList.addFirst(23);
//        mySingleList.addFirst(34);
//        mySingleList.addFirst(45);
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);

        mySingleList.addIndex(4,999);

        mySingleList.display();
        System.out.println();

//        mySingleList.remove(999);

        mySingleList.removeAllKey(999);
        mySingleList.display();
        System.out.println();
//        System.out.println(mySingleList.contains(23));
//        System.out.println(mySingleList.size());
    }
}
